﻿namespace ChessTest.Chess.Items
{
    /**
     * 走直线的
     */
    public abstract class LineStepItem : Chessman
    {
        protected override bool IsOverstep(Chessboard chessboard, int x, int y)
        {
            if (base.IsOverstep(chessboard, x, y))
                return true;

            //先确保是走直线的
            if (x != PositionX && y != PositionY)
                return true;
            return false;
        }
    }
}
